﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeFirst.Models
{
    public class Student
    {
        public int Id { get; set; }

        public string Name { get; set; }

        public int Age { get; set; }

        public GenderEnum Gender { get; set; }

        public int GradeId { get; set; }

        public virtual Grade Grade { get; set; }
    }

    public enum GenderEnum
    {
        /// <summary>
        /// 男
        /// </summary>
        Male,

        /// <summary>
        /// 女
        /// </summary>
        Female,

        /// <summary>
        /// 未知
        /// </summary>
        Unknown
    }
}
